<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<jsp:include page="head.jsp" />
<jsp:include page="nav.jsp" />

<body class="page-body  loaded" style="">

  
          <div class="page-title">
          <div class="title-env">
        <div class="jumbotron">
            <h2>批量添加账号</h2>
        
            <p>
                 <code>可以一次生成所需要的格式的帐号密码</code>
            </p>
        
        </div>
            <div class="row">
                <div class="col-sm-12">
                
                  <div class="panel panel-default">  
                    <div class="panel-heading">
                    
                      <h3 class="panel-title">请输入帐号信息</h3>
                  
                    </div>
                    <div class="panel-body">
                  <form id="pladd" action="${pageContext.request.contextPath }/preAddZhServlet" method="post" role="form" class="form-horizontal validate">
                 
                   <p align="center" style="color:green;">${requestScope.Msg}</p> 
                    <div class="form-group">
                      <label class="col-sm-2 control-label">账号个数</label>
                      <div class="col-sm-9">
                        <input type="text" class="form-control" id="field-1" placeholder="请输入个数" name="num" data-validate="required,number">
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">帐号格式</label>
                      <div class="col-sm-9">
                        <div class="row">
                          <div class="col-sm-4">
                            <input type="text" class="form-control" id="field-1" placeholder="账号前缀" name="prefix" data-validate="required">
                          </div>
                          <div class="col-sm-4">
                            <input type="text" class="form-control" id="field-1" placeholder="随机数长度" name="strlen" data-validate="required,number">
                          </div>
                          <div class="col-sm-4">
                            <input type="text" class="form-control" id="field-1" placeholder="账号后缀" name="suffix">
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">帐号密码</label>
                      <div class="col-sm-9">
                        <input type="text" class="form-control" id="field-1" placeholder="请输入密码" name="pass" data-validate="required">
                      </div>
                    </div>  

                    <div class="form-group">
                      <label class="col-sm-2 control-label">是否开通</label>
                      <div class="col-sm-9">
                        <select name="state" class="form-control">
                          <option value="开通">开通</option>
                          <option value="禁用">禁用</option>
                        </select> 
                      </div>
                    </div>  

                    <div class="form-group">
                      <label class="col-sm-2 control-label">开通流量</label>
                      <div class="col-sm-9">
                        <div class="input-group">
                          <input type="text" class="form-control" name="maxll" data-validate="required,number">
                          <span class="input-group-addon">MB</span> 
                        </div>
                      </div>
                    </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">到期日期</label>
                    <div class="col-sm-9">
                      <div class="input-group">
                        <input type="text" class="form-control datepicker" name="enddate"  onclick="WdatePicker()" value="${requestScope.endtime}">
                        
                        <div class="input-group-addon">
                      <i class="linecons-calendar">年/月/日</i>
                        </div>
                      </div>
                    </div>
                  </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">账户备注</label>
                      <div class="col-sm-9">
                        <input type="text" class="form-control" id="field-1" placeholder="请输入备注" name="notes">
                      </div>
                    </div>  

                    <div class="form-group">
                      <label class="col-sm-2 control-label"></label>
                      <div class="col-sm-9">
                        <p align="center" style="color:red;">${requestScope.errorMsg}</p> 
                        <button type="submit" class="btn btn-info btn-block">批量生成账号</button>
                      </div>
                    </div>
                    
                  </form> 
                    </div>
                  
                  </div>
                    
                </div>

            </div>
</div>
</div>


<jsp:include page="copy.jsp" />